.device-form {
  max-width: 600px;
  margin: 0 auto;
}

.device-form .ant-form-item {
  margin-bottom: 24px;
}

.device-form .ant-form-item-label > label {
  font-weight: 500;
}

.device-form .ant-input,
.device-form .ant-select-selector,
.device-form .ant-picker,
.device-form .ant-input-number {
  border-radius: 6px;
  transition: all 0.3s ease;
}

.device-form .ant-input:focus,
.device-form .ant-select-focused .ant-select-selector,
.device-form .ant-picker-focused,
.device-form .ant-input-number-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.device-form .ant-form-explain {
  font-size: 12px;
}

.error-message {
  margin-top: 16px;
  padding: 12px;
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  color: #cf1322;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .device-form {
    max-width: 100%;
  }
  
  .device-form .ant-form-item {
    margin-bottom: 16px;
  }
}